const dic = {
  level_type: [
    {
      label: '1',
      value: 1
    },
    {
      label: '2',
      value: 2
    },
    {
      label: '3',
      value: 3
    },
    {
      label: '4',
      value: 4
    }
  ],
  approve_type: [
    {
      label: '无用/麻烦',
      value: '1'
    },
    {
      label: '利用',
      value: '2'
    },
    {
      label: '发展',
      value: '3'
    },
    {
      label: '核心',
      value: '4'
    }
  ]
}
export const option = function () {
  return {
    border: true,
    stripe: true,
    addBtn: false,
    editBtn: false,
    viewBtn: false,
    printBtn: false,
    addRowBtn: true,
    align: 'center',
    selection: true,
    menu:false,
    tip:false,
    index: true,
    indexLabel: '序号',
    column: [
      {
        label: '供应商名称',
        prop: 'supplierName',
        cell: true,
        rules: [
          {
            required: true,
            message: '请输入供应商名称',
            trigger: 'blur'
          }
        ]
      },
      {
        label: '我方业务对供方价值',
        children: [
          {
            label: '业务利润贡献等级',
            prop: 'businessProfitContributionLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择业务利润贡献等级',
                trigger: 'change'
              }
            ]
          },
          {
            label: '供应商行业竞争性等级',
            prop: 'supplierIndustryCompetitivenessLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择供应商行业竞争性等级',
                trigger: 'change'
              }
            ]
          },
          {
            label: '业务重要性等级',
            prop: 'businessImportanceLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择业务重要性等级',
                trigger: 'change'
              }
            ]
          }
        ]
      },
      {
        label: '我方对供应商吸引力',
        children: [
          {
            label: '规模比例等级',
            prop: 'scaleProportionLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择商行业竞争性等级',
                trigger: 'change'
              }
            ]
          },
          {
            label: '商行业竞争性等级',
            prop: 'businessCompetitivenessLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择商行业竞争性等级',
                trigger: 'change'
              }
            ]
          },
          {
            label: '回款机制等级',
            prop: 'paymentCollectionLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择回款机制等级',
                trigger: 'change'
              }
            ]
          },
          {
            label: '商誉及知名度等级',
            prop: 'goodwillPopularityLevel',
            type: 'select',
            dicData: dic.level_type,
            cell: true,
            rules: [
              {
                required: true,
                message: '请选择商誉及知名度等级',
                trigger: 'change'
              }
            ]
          }
        ]
      },
      {
        label: '理论关系定位',
        prop: 'theoreticalRelationshipOrientation',
        type: 'select',
        dicData: dic.approve_type
      },
      {
        label: '审批定位',
        prop: 'approveRelationship',
        type: 'select',
        dicData: dic.approve_type,
        cell: true,
        rules: [
          {
            required: true,
            message: '请选择审批定位',
            trigger: 'change'
          }
        ]
      }
    ]
  }
}
